package com.net.xpay.common.dao.invoice;

import com.net.xpay.common.domain.invoice.Invoice;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import com.net.common.annotation.DataCommon;
import com.net.xpay.core.model.InvoiceSearchModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataCommon
@Repository
public interface InvoiceMapper extends PagedMapper<Long, Invoice> {
    List<Invoice> search(@Param("searchModel") InvoiceSearchModel searchModel,@Param("page") Page page);

    long searchCount(@Param("searchModel")InvoiceSearchModel searchModel);
}
